<!--
 * FilePath     : \src\views\home\components\chooseUs.vue
 * Author       : SJZ
 * Date         : 2025-03-24 21:18
 * LastEditors  : SJZ
 * LastEditTime : 2025-04-04 00:02
 * Description  : 选择我们
 * CodeIterationRecord: 
 -->
<template>
  <div class="choose-us w-full mt-50 box-border">
    <img src="/public/static/images/home/chooseUsBackground.jpg" width="100%" height="100%" />
    <div class="pos-absolute top-0 left-0 w-100% px-30 pt-50 aline-center c-#ffffff box-border">
      <div class="w-360 mr-4%">
        <h1 class="b-b-solid b-b-1 pb-30">Why Choose Us</h1>
        <p class="mt-10">{{ data?.info }}</p>
        <div class="w-150 b-1-#ffffff c-#ffffff mt-40 p-10 box-border text-center cursor-pointer">Contact Us Now</div>
      </div>
      <div class="w-550 ml-4%">
        <el-row :gutter="10">
          <el-col :span="12" v-for="(item, index) in data?.data" :key="index">
            <div class="pos-relative bg-#f7f7f71a mt-10 px-20 py-10 box-border cursor-pointer hover:bg-#f7f7f733 z-100 h-100px">
              <div class="fs-30 fw-bold">{{ item.number }}</div>
              <div class="w-150 mt-3">{{ item.name }}</div>
              <i :class="`iconfont ${item.icon} fs-40 pos-absolute right-5 bottom-0 theme-color-primaryFontColor`"></i>
            </div>
          </el-col>
        </el-row>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
defineProps({
  data: {
    type: Object as PropType<Record<string, string | Record<string, any>>>,
    require: true
  }
});
</script>
<style lang="scss" scoped>
.choose-us {
  position: relative;
  height: 400px;
  &:before {
    background: linear-gradient(108deg, #307ff9, #307ff9 30%, transparent 0, transparent);
    content: "";
    display: block;
    height: calc(100% - 50px);
    left: 0;
    opacity: 0.8;
    position: absolute;
    top: 50px;
    width: 600px;
  }
  &:after {
    background: linear-gradient(294deg, #307ff9, #307ff9 24%, transparent 0, transparent);
    content: "";
    display: block;
    height: 100%;
    right: 0;
    top: 0;
    opacity: 0.2;
    position: absolute;
    width: 600px;
  }
}
</style>
